package lq;

import java.util.Scanner;

public class lq2015 {
    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        int[] a = new int[101];
         int m=1;
         int x,y,z,sum,q;
         int average;
        for (int i=0;i<a.length;i++){
            a[i]=m*2;
            m++;
        }
        while (in.hasNext()){
            x=in.nextInt();
            y=in.nextInt();
            z=0;
            sum=0;
            q=0;
            for (int i=0;i<x;i++){
                sum+=a[i];
                z++;
                if (z==y){
                    if (q==0){
                        average=sum/y;
                        System.out.print(average);
                        z=0;
                        sum=0;
                        q++;
                    }
                    else {
                        average=sum/y;
                        System.out.print(" "+average);
                        z=0;
                        sum=0;
                    }
                }
            }
            if (x%y!=0){
                System.out.print(" "+(sum)/(x%y));
            }
            System.out.println();
        }
    }
}
